package com.artPreter.service.impl;

import com.artPreter.pojo.ArtistContentSection;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.artPreter.pojo.ArtistContentSection;
import com.artPreter.mapper.ArtistContentSectionMapper;
import com.artPreter.pojo.ArtistSectionTemp;
import com.artPreter.service.IArtistContentSectionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.UUID;

/**
 * <p>
 * 艺术家栏目内容表 服务实现类
 * </p>
 *
 * @author jarvis
 * @since 2024-11-23
 */
@Service
public class ArtistContentSectionServiceImpl extends ServiceImpl<ArtistContentSectionMapper, ArtistContentSection> implements IArtistContentSectionService {


    @Override
    public List<ArtistContentSection> getList(ArtistContentSection artistContentSection) {
        if(artistContentSection.getArtistId()!=null&&artistContentSection.getSectionId()!=null){
            LambdaQueryWrapper <ArtistContentSection> queryWrapper = new LambdaQueryWrapper<>();
            queryWrapper.eq(ArtistContentSection::getArtistId,artistContentSection.getArtistId());
            queryWrapper.eq(ArtistContentSection::getSectionId,artistContentSection.getSectionId());
            return this.baseMapper.selectList(queryWrapper);
        }
        return null;
    }
}
